package com.chorye.function.pdf.write.controller;

import com.chorye.function.pdf.write.service.PdfWriteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

/**
 * @Company: 北京XXXX有限公司
 * @Author JiangYy
 * @Title: PdfWriteController
 * @Description: TODO
 * @Date 2019/7/23 10:55
 */
@Controller
@RequestMapping("/pdf/write/")
public class PdfWriteController {
    /**
     * pdf导入服务层
     */
    @Autowired
    private PdfWriteService pdfWriteService;

    /**
     * 导出pdf文件
     */
    @RequestMapping("/export")
    public void exportPDF(HttpServletResponse response) {
        pdfWriteService.exportPDF(response);
    }
}
